package com.ysxsoft.wdg.adapter.my;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;
import com.ysxsoft.wdg.bean.response.ScoreDetailResponse;

public class JfMxAdapter extends BaseQuickAdapter<ScoreDetailResponse.DataBean,BaseViewHolder> {


    public JfMxAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear(){
        getData().clear();
        notifyDataSetChanged();
    }


    @Override
    protected void convert(BaseViewHolder helper, ScoreDetailResponse.DataBean item) {
        helper.setText(R.id.tv_name,item.getDesc());
        helper.setText(R.id.tv_jf, item.getNum());
        helper.setText(R.id.tv_time,item.getAddtime());
    }
}
